﻿using System.Globalization;
using System.Windows.Data;

namespace VideoTools.Converters
{
    public class Enum1Converter : IValueConverter
    {
        public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
        {
            if (value == null)
                return null;
            Enum a = (value as Enum);
            return a.ToString();
        }

        public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
        {

            throw new NotImplementedException();
        }
    }
}
